package com.ruihu.admin.module.system.department.domain.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;

/**
 * 
 * [  ]
 * 
 * @version 1.0
 * @since JDK1.8
 * @author yandanyang
 * @company Ruihu (Nanjing) Information Technology Co., Ltd
 * @copyright (c) 2019 Ruihu (Nanjing) Information Technology Co., LtdInc. All rights reserved.
 * @date
 */
@Data
public class DepartmentCreateDTO {

    @ApiModelProperty("部门编号")
    @NotNull(message = "部门编号不能为空")
    private String departmentCode;

    @ApiModelProperty("部门名称")
    @Length(min = 1, max = 50, message = "请输入正确的部门名称(1-50个字符)")
    @NotNull(message = "请输入正确的部门名称(1-50个字符)")
    private String departmentName;

    @ApiModelProperty("部门简称")
    private String departmentShortName;

    @ApiModelProperty("组织机构id")
    @NotNull(message = "请选择组织机构")
    private Long orgId;

    @ApiModelProperty("责任人id")
    private Long managerId;

    @ApiModelProperty("责任人编号")
    private String managerCode;

    @ApiModelProperty("责任人")
    private String managerName;

    @ApiModelProperty("上级部门id (可选)")
    private Long parentId;

    @ApiModelProperty("上级部门名称列表")
    private String parentDepartmentNames;

    @ApiModelProperty("描述")
    @Length(max = 200, message = "描述最多200个字符")
    private String remark;

}
